<?php

class PostController extends BaseController 
{
    
    function init()
    {
        $authenticate = new Defined_Authenticate();
        
        if($authenticate->isLogged()===false){
            setcookie('referrer', '/user/post/',time()+30*24*60*60,'/');
		}else{
            $this->_redirect ('/user/post/');
			exit; 
		}
        $this->load_header .= '<script type="text/javascript" src="'.JS_URL.'jquery.maskedinput-1.3.min.js"></script>';
        $this->load_header .= '<script type="text/javascript">jQuery(function($){
   $("#birthdate").mask("99/99/9999");   
});</script>';
        
    }
    function indexAction(){
        
    }
}    